# -*- coding: utf-8 -*-
import json

import requests

# 数据在url地址中
url = "https://m.douban.com/rexxar/api/v2/subject_collection/movie_showing/items?start=0&count=18&loc_id=108288"

headers = {
    "Referer": "https://m.douban.com/movie/nowintheater?loc_id=108288",
    "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
}

resp = requests.get(url=url, headers=headers)

json_str = json.loads(resp.content.decode())
print(json_str)

# print(json.dumps(json_str, ensure_ascii=False, indent=2))
